a100f78bafe002e0bbd3123ba0e1ce2b20e12b27,transports/tcp/src/test/java/org/mule/providers/tcp/other/SocketTimingExperimentTestCase.java,SocketTimingExperimentTestCase,badSend,#Socket#,73
Before Change
protected void badSend(Socket socket) throws IOException
{
// just in case this reduces close time
socket.setReuseAddress(true);
// turn off linger
socket.setSoLinger(false, 0);
// set buffer larger than the size we will send
After Change
{
ServerSocket another = new ServerSocket();
another.bind(new InetSocketAddress(LOCALHOST, SERVER_PORT));
another.setReuseAddress(true);
Socket another2 = new Socket(LOCALHOST, SERVER_PORT);
Socket another3 = another.accept();
another2.getOutputStream().write(9);